package com.home.entity;

import lombok.*;

import javax.persistence.Column;
import java.util.Date;

/**
 * @author ：chenxf
 * @date ：Created in 2020/8/3 15:48
 * @description：
 * @modified By：
 * @version: $
 */
@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PACKAGE)
@NoArgsConstructor
@Getter
@Setter
public class CoinResult {

    private String buyOrSell;

    private String buyOrSellStr;

    private String num;

    private String price;

    /**
     * 出发时间
     */
    private String orderTime;

    private String orderNo;

    private String status;

    private String tradeNum;
    private String tradePrice;

    public void updateStatus(){
        if(buyOrSell.equals("1")){
            buyOrSellStr="买入";
        }else {
            buyOrSellStr="卖出";
        }
    }


}
